﻿
<template>
  <div id="app">
    <header1></header1>
	<center></center>
  </div>
</template>

<script>

import header1 from "./components/header"
import center from "./components/center"
export default {
  name:'app',
  components:{
    // Footer
	header1,
	center
  },
  methods:{
    linkTo(){
      //第二种跳转方式 push
      this.$router.push('/book')
    }
  },
  mounted:function(){
    this.$axios.post( "/api/tcb/databasequery?access_token=38_DnGoTN8_erlR601gBRPuwnA7gvPgZrZGXsnwHjBk6jEHtY-NnaepuZXz39UVEEGx4cznmLxlvM0bGDB3kJfnO8_NsSpxGnqG15Yrd8h0aLExL0HDqSxzdVUTibiSxtGr6R1oP-wAAhp2VZgKLYAdAIAREG",
        {
            "env":"minijingdong-6gmzb5oc4447b462",
            "query":"db.collection(\"goods\").get()"
        }
    ).then(res=>{
        console.log(res.data)
    }).catch(err=>{
        console.log(err)
    })
  }
}
</script>
<style>

#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  /* 浏览器 字体抗锯齿 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

#nav {
  padding: 30px;
}

#nav a {
  font-weight: bold;
  color: #2c3e50;
}

#nav a.router-link-exact-active {
  color: #42b983;
}

.header-main{
    position: fixed;
    top: 0;
    width: 100%;
  }

</style>
